// pages/comboInformation/comboInformation.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    combo:{
      name:"name",
      price:"price",
      time:"time",
      hospital:"hospital"
    },
  },
  onLoad: function (options) {
    this.data.combo.name=options.combo;
    this.data.combo.price=options.price;
    this.data.combo.time=options.time;
    this.data.combo.hospital=options.hospital;
    console.log(this.data.combo.name)
    console.log(this.data.combo.price)
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  },

  buyCombo(){
    wx.navigateTo({
      url: '/pages/reservation/reservation?name='+this.data.combo.name+'&'+'price='+this.data.combo.price+'&'+'time='+this.data.combo.time+'&'+'hospital='+this.data.combo.hospital,
    })
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})